package edu.kjxy.worker0308;

import java.util.Scanner;

public class worker07 {

	public static void main(String[] args) {
		System.out.println("请输入身高、体重、性别：");
		
		Scanner in = new Scanner(System.in);
		int height = in.nextInt();
		int weight = in.nextInt();
		String sex = in.next();
		in.close();
		double std_weight = 0;
		if (sex.equals("man")) {
            std_weight = (height-80)*0.7;
        } else if(sex.equals("woman")){
            std_weight = (height-70)*0.6;
        }
        else
        {
        	System.out.println("输入错误");
        }
        double diff_std_weight = (weight-std_weight)/std_weight;
        
        if (diff_std_weight>=-0.1 && diff_std_weight<=0.1){
            System.out.println("标准");
        } else if (diff_std_weight>=-0.2 && diff_std_weight<-0.1){
        	System.out.println("偏瘦");
        } else if (diff_std_weight>0.1 && diff_std_weight<=0.2){
        	System.out.println("偏胖");
        } else if (diff_std_weight>0.2){
        	System.out.println("肥胖");
        }
	}
}

                           